<template>
  <div class="order_item">
    <head-top head-title="我的订单" goBack="true"></head-top>
    <ul>
      <li>
        <router-link to="/AllOrder" replace><span>全部</span></router-link>
      </li>
      <li>
        <router-link to="/Payment" replace><span>待付款</span></router-link>
      </li>
      <li>
        <router-link to="/AlreadyPay" replace><span>已付款</span></router-link>
      </li>
      <li>
        <router-link to="/Delivery" replace><span>待收货</span></router-link>
      </li>
      <li>
        <router-link to="/Assess" replace><span>待评价</span></router-link>
      </li>
      <li>
        <router-link to="/Complete" replace><span>已完成</span></router-link>
      </li>
    </ul>
    <!--显示子路由内容部分-->
    <router-view></router-view>
  </div>
</template>
<style lang="scss">
  @import "../../common/sass/index.scss";

  .order_item {
    width: 100%;
    margin-top: 40px;
    ul {
      width: 100%;
      height: 40px;
      border-bottom: 1px solid #d7d7d7;
      list-style: none;
      background: #fff;
      li {
        width: 16%;
        float: left;
        line-height: 40px;
        text-align: center;
        margin-left: 2px;
        a {
          height: 40px;
          color: #000000;
          font-size: 13px;
          text-decoration: none;
        }
        a.active {
          color: #0078de;
          font-size: 13px;
          border-bottom: 2px solid #0078de;
          padding-bottom: 11px;
          span{
            padding: 5px;
          }
        }
      }
    }
  }

</style>
<script>
  import headTop from '../header/Header.vue'

  export default {
    name: 'MyOrder',
    data () {
      return {}
    },
    components: {
      headTop
    }
  }
</script>
